/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Models;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

/**
 *
 * @author Hse7en
 */
@ManagedBean(name = "bannerBean")
@RequestScoped
public class Banner {

    int id;
    String title, image, link, description;
    Boolean status;
    Banner banner;
    /**
     * Creates a new instance of Banner
     */
    public Banner() {
    }

    public Banner(int id, String title, String image, String link, String description, Boolean status) {
        this.id = id;
        this.title = title;
        this.image = image;
        this.link = link;
        this.description = description;
        this.status = status;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public void edit(Banner b) {
        this.id = b.id;
        this.title = b.title;
        this.image = b.image;
        this.link = b.link;
        this.description = b.description;
        this.status = b.status;
    }

    public Banner getBanner() {
        return banner;
    }

    public void setBanner(Banner banner) {
        this.banner = banner;
    }
    
}
